package com.aaa.three.controller;

import com.aaa.three.entity.Registered;
import com.aaa.three.pojo.query.RecordsQuery;
import com.aaa.three.result.AjaxResult;
import com.aaa.three.service.impl.RecordsServiceImpl;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PACKAGE_NAME: com.aaa.three.controller
 * @NAME: RecordsController
 * @USER: Tprairie
 * @DATE: 2022/1/13
 * @PROJECT_NAME: three
 */
@RestController
@RequestMapping("/rec")
public class RecordsController {
    @Autowired
    private RecordsServiceImpl recordsServiceImpl;
    @RequestMapping("/getDep")
    public AjaxResult getDepartment(){
        return recordsServiceImpl.getDepartment();
    }
    @RequestMapping("/getPer")
    public AjaxResult allRecords(RecordsQuery recordsQuery){
        return recordsServiceImpl.allRecords(recordsQuery);
    }
    @RequestMapping("/getDet")
    public AjaxResult getDetailedRecords(Registered registered){
        return recordsServiceImpl.getDetailedRecords(registered);
    }
}
